package com.ls.fw.data.search.impl.dao.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.data.solr.example.model.Product;
  
public class Client {  
  
    public static void main(String[] args) throws Exception {  
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring-solr.xml");  
      
        int id =16;
        Product product = new Product();
        product.setId(Integer.toString(id));
        product.setAvailable(id % 2 == 0);
        product.setName("product-" + id);
        product.setPopularity(id * 10);
        product.setPrice((float) id * 100);
        product.setWeight((float) id * 2);
        try {
			//productService.save(product);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
		}
		//productService.delete("1");
		//System.out.println(productService.find("1"));
    }  
}